async selectPatient(patient) {
  this.patientId = patient.id || patient.fileNumber;
  if (!this.patientId) {
    this.$Message.error('患者信息缺失，无法加载病历');
    return;
  }
  this.showPatientSelector = false;

  // 1. 先查该患者的最新挂号单
  const orderRes = await getRequest('/hospitalOrder/getLatestByPatientId', {
    patientId: this.patientId
  });
  if (!orderRes.success || !orderRes.result) {
    this.$Message.error('未找到该患者的挂号记录');
    return;
  }
  const orderId = orderRes.result.id;

  // 2. 再查病历
  this.loadPatientMedicalRecord(orderId);
}, 